package com.yuyou.fn.platform.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.platform.entity.SysUserRole;

import java.util.List;

/**
 *
 * SysUserRole 表数据服务层接口
 *
 */
public interface ISysUserRoleService extends ISuperService<SysUserRole,Long> {


    List<SysUserRole> findRoleByUserId(Long userId);

    void saveOrUpdateUserRole(List<Long> roleId , Long userId );

    void deleteUserRole(Long userId, Long roleId);

    List<Long> findSysUserByRoleId(Long roleId);

    Long countByUserIdRoleNames(long userId,List<String> roleNames);

    Long countByUserIdRoleIds(long userId,List<Long> roleIds);

    Boolean showIdNoByCheckRoleNames(long userId);
}